use std::net::{Ipv4Addr, Ipv6Addr};

#[derive(Debug)]
pub enum Address {
    Ipv4(Ipv4Addr),
    Ipv6(Ipv6Addr),
    Hostname(String),
}


#[derive(Debug)]
pub struct NetLocation {
    address: Address,
    port: u16,
}